/*
 * 页面样式统一预设置
 */

html,
button,
input,
select,
textarea {
    color: #222;
}

a {
    cursor: pointer;
}

::-moz-selection {
    background: #f2c2c9;
    color: #a4003a;
    text-shadow: none;
}

hr {
    display: block;
    height: 1px;
    border: 0;
    margin: 10px 0;
    padding: 0;
    background-image: -webkit-linear-gradient(left, #fff, #ccc, #fff);
    background-image: -moz-linear-gradient(left, #fff, #ccc, #fff);
    background-image: -ms-linear-gradient(left, #fff, #ccc, #fff);
    background-image: -o-linear-gradient(left, #fff, #ccc, #fff);
    width: 50%;
    left: 25%;
    position: relative;
    border: none;
}

img {
    vertical-align: middle;
}

textarea {
    resize: vertical;
}

html,
body {
    height: 100%;
}

body {
    font-weight: 300;
    font-size: 16px;
    color: #555;
    -webkit-font-smoothing: antialiased;
    -webkit-overflow-scrolling: touch;
    line-height: 1.4;
    font-family: 'Open Sans', sans-serif;
}

/*
 * 样式预设
 */

 .fl {
    float: left;
}

.fr {
    float: right;
}

.clear-f {
    *zoom: 1;
}

.clear-f:after {
    display: table;

    clear: both;

    content: '';
}

.position-r {
    position: relative;
}

.position-a {
    position: absolute;
}

.position-f {
    position: fixed;
}

.zx310 {
    z-index: 310;
}

/* 按钮禁用 */
.disabled {
    outline: 0 none;
    opacity: .4;
    filer: alpha(opacity=40);

    -ms-pointer-events: none;
    pointer-events: none;
    
    cursor: default!important;
}

/* 背景图片的展示方式 */
/* 等比放大，不一定看到全图，不会根据容器压缩和变形 */
.bg-cover-cc {
    background-size: cover;
    background-position: center center;
}

/* 整图覆盖容器，会根据容器压缩和变形 */
.bg-size-100 {
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
}


/* 弹性布局 */
.flex-box, .flex-b-sc, .flex-b-ec, .flex-b-cc, .flex-b-sbc, .flex-b-sac {
    display: -webkit-box;
    display: -ms-flexbox;
    display: -moz-box;
    display: box;
    display: -webkit-flex;
    display: flex;
}
  
.jc-s, .flex-b-sc {
    -webkit-box-pack: center;
    -ms-flex-pack: justify;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}
  
.jc-e, .flex-b-ec {
    -webkit-box-pack: center;
    -ms-flex-pack: justify;
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}
  
.jc-ce, .flex-b-cc {
    -webkit-box-pack: center;
    -ms-flex-pack: justify;
    -webkit-justify-content: center;
    justify-content: center;
}
  
.jc-sb, .flex-b-sbc {
    -webkit-box-pack: space-between;
    -ms-flex-pack: justify;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
}
  
.jc-sa, .flex-b-sac {
    -webkit-box-pack: space-around;
    -ms-flex-pack: justify;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-around;
    justify-content: space-around;
}
  
.ai-s {
    -webkit-box-align: flex-start;
    -webkit-align-items: flex-start;
    -ms-flex-align: flex-start;
    align-items: flex-start;
}
  
.ai-ce, .flex-b-sc, .flex-b-ec, .flex-b-cc, .flex-b-sbc, .flex-b-sac {
    -webkit-box-align: center;
    -webkit-align-items: center;
    -ms-flex-align: center;
    align-items: center;
}
  
.as-s {
    -ms-flex-item-align: start;
    align-self: flex-start;
}
  
.as-e {
    -ms-flex-item-align: end;
    align-self: flex-end;
}
  
.fd-col {
    -webkit-box-orient: vertical;
    -webkit-flex-direction: column;
    -moz-flex-direction: column;
    -ms-flex-direction: column;
    -o-flex-direction: column;
    flex-direction: column;
}
  
.fw-wr {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
}
  
.flex-1 {
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    /* width: 0;  写上这个是为了防止子元素撑开父元素，但是，如果写在这里会比较不方便 */
}
  
.flex-2 {
    -webkit-box-flex: 2;
    -moz-box-flex: 2;
    -webkit-flex: 2;
    -ms-flex: 2;
    flex: 2;
}

